<template>
	<view class="tishi" v-if="show">
		<view>
			<image src="../../static/img/xz.png" style="width: 59rpx;height: 59rpx;" />
			<view class="text">
			{{ $jf('您的商品已加入购物车','您的商品已加入購物車')}}	
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		name: "xx-ts",
		data() {
			return {
				show: false
			};
		},
		methods: {
			sing() {
				this.show = true
				setTimeout(() => {
					this.show = false
				}, 2000)
			}
		}
	}
</script>

<style lang="scss">
	.tishi {
		position: fixed;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
		top: 50%;
		left: 50%;
		width: 405rpx;
		height: 186rpx;
		margin-top: -93rpx;
		z-index: 999;
		background: #FFFFFF;
		box-shadow: 0px 3rpx 12rpx 0px rgba(0, 0, 0, 0.09);
		border-radius: 10rpx;
		transform: translatex(-50%);

		.text {
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #00795E;
			line-height: 64rpx;
		}
	}
</style>
